Repository navigation
Study View filter bar: the portal's words between groups (STV-FB-2) - #453
Merged
Merged
Conversation
Generic pills read as the portal's GroupLogic writes them: an OR group "( a or b )", lower-case and in parentheses, and two groups in a row from the same chart joined by "and" (joinedByAnd); a clinical chart's pill, or another chart's group, gets no word. The Cohorts tab's pills keep their own AND / OR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q3ezTaCo6wHFVsML6Qd4ht
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
Review: pass. Display only. Study View filter-bar OR groups are written "( a or b )", and |
This was referenced Nov 19, 2026
alisman
added a commit
that referenced
this pull request
Nov 19, 2026
The fallback pill for clauses that are not a gene table's selection passes `portal` again, as master does, so gene-chart and typed-OQL OR groups keep #453's parentheses and lower-case "or". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q3ezTaCo6wHFVsML6Qd4ht
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Explore filter bar's generic pills now use the words the portal's
GroupLogicwrites (STV-FB-2):joinedByAndinlib/study-view-pills.tsdecides. A clinical chart's pill, or a group from another chart, gets no word, as before.ClausePilltakes the portal words only when asked, throughportal).What counts as one chart: a clause's leaf kind, plus the gene and profile of a genomic clause, the entity of an assay clause, and patient or sample for a treatment clause.
Spec IDs
Verification
test/study-view-pills.test.ts: two gene-table groups ("and"), a clinical pill between (none), a case list after a gene (none), two case lists ("and"), patient-level and sample-level treatment clauses (none, two tables).npm test6,818 pass, 0 fail (with master merged in).scripts/mutants/study-view/pill-words.ts(guardunit).Tracker
Under "Study View → filters, actions and tabs" → "Found by the re-measurement of 2026-11-18", this line (docs/PORTAL-PARITY.md:477):
becomes what is left:
Scorecard
31-study-view-shell.md, row STV-FB-2 (was| STV-FB-2 | 🟡 | B | ↓ Clinical pills "<chart> : a or b", no word between charts ✅ (\study-view-pills.tsx:115-120`); gene, case-list and other generic pills join with "OR" in capitals and have no parentheses or outer "and" (`pills.tsx:154`) |`):| STV-FB-2 | ✅ | B | Clinical pills " : a or b", no word between charts; generic OR groups "( a or b )" and two groups of one chart joined by "and" (
joinedByAnd,lib/study-view-pills.ts); a gene-table Union is one OQL clause, its pill text under STV-FB-3 |Preview
/lab?tab=explore&study=coadread_tcga_pan_can_atlas_2018: apply APC + TP53 from Mutated Genes, then KRAS.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q3ezTaCo6wHFVsML6Qd4ht
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.